/*
 * eeprom.h
 *
 *  Created on: 27-06-2012
 *      Author: Mati
 */

#ifndef EEPROM_H_
#define EEPROM_H_

#define MC24LC64_ADDR 0xa0		/* I2C address of the 24LC64 EEPROM */

int i2ctest_wr(void);
int i2ctest_rd(void);

int SaveBytesInEEPROM(uint8_t *bytes, uint8_t start_addr, int num);
int SaveByteInEEPROM(uint8_t byte2write, uint8_t addr);//(byte _byte, uint16_t addr);
uint8_t ReadByteFromEEPROM(uint8_t addr);
void ReadBytesFromEEPROM(uint8_t addr, uint8_t num, uint8_t *tab);
#endif /* EEPROM_H_ */
